package com.kamkor.interviewer.client.view;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.Widget;
import com.kamkor.interviewer.client.presenter.InterviewInfoPresenter.Display;

public class InterviewInfoView extends Composite implements Display {
	interface MyUiBinder extends UiBinder<Widget, InterviewInfoView> {}
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);		
	
	@UiField
	TextArea interviewInformation;
	@UiField
	Button selectAll;
	@UiField
	Button editInterview;
	
	public InterviewInfoView() {
		initWidget(uiBinder.createAndBindUi(this));		
	}

	@Override
	public Widget asWidget() {
		return this;		
	}

	@Override
	public TextArea getInterviewInformation() {
		return interviewInformation;
	}

	@Override
	public HasClickHandlers getSelectAll() {
		return selectAll;
	}
	
	@Override
	public HasClickHandlers getEditInterview() {
		return editInterview; 
	}
}
